<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">

    <style>
        .el-header {
            background-color: #B3C0D1;
            color: #333;
            line-height: 60px;
        }
        .el-main {
            background-color: #E9EEF3;
            color: #333;
            line-height: 60px;
        }
    </style>
</head>
<body>
<div id="app">
    <el-header style="background-color: #0095d7;text-align: center">
        <h1 style="color: white;font-size: 22px">
            疫情工作管理页面
        </h1>
    </el-header>

    <el-form ref="form" :model="form" label-width="80px">
        <el-form-item label="事件标题">
            <el-input v-model="form.name" placeholder="请输入要上报的事件标题"></el-input>
        </el-form-item>
        <el-form-item label="所属区域">
            <el-select v-model="form.region" placeholder="请选择活动区域">
                <el-option label="上海" value="shanghai"></el-option>
                <el-option label="北京" value="beijing"></el-option>
            </el-select>
        </el-form-item>
        <el-form-item label="上报时间">
            <el-col :span="11">
                <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker>
            </el-col>
        </el-form-item>
        <el-form-item label="事件类别">
            <el-radio-group v-model="form.resource">
                <el-radio label="风险地区外出申请"></el-radio>
                <el-radio label="疫情信息申报"></el-radio>
                <el-radio label="其他"></el-radio>
            </el-radio-group>
        </el-form-item>
        <el-form-item label="事件详情">
            <el-input type="textarea" v-model="form.desc"></el-input>
        </el-form-item>
        <el-form-item>
            <el-button type="primary" @click="onSubmit">立即上报</el-button>
            <el-button>取消</el-button>
        </el-form-item>
    </el-form>
    <el-main>




    </el-main>
</div>
</body>

<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>

<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function() {

            return {
                form: {
                    name: '',
                    region: '',
                    date1: '',
                    date2: '',
                    delivery: false,
                    type: [],
                    resource: '',
                    desc: ''
                }



            }



        },
        methods: {
            onSubmit() {
                console.log('submit!');
            }

        }

    })
</script>
</html>